package cn.webrx;

public class For4 {
    public static void main(String[] args) {
        int n = 12;
        int s = 20;
        for (int i = 1; i < n; i += 2)
            System.out.println(" ".repeat(--s) + "*".repeat(i));
        for (int i = n % 2 == 0 ? n - 3 : n - 4; i > 0; i -= 2)
            System.out.println(" ".repeat(++s) + "*".repeat(i));

    }
}
